{% extends 'TopxiaWebBundle:Coin:layout.html.twig' %}
{% block title %}我的积分 - {{ parent() }}{% endblock %}

{% set side_nav = 'my-integral' %}

{% block main %}
<script src="{{ asset('assets/libs/jquery.js') }}"></script>
<script type="text/javascript">
	$(document).ready(function(){  
			var jf={{ integral }};
		    var i=0;
			function fun(){
				if(i<jf){
					i++;
					$("#integral").text(i);
				}
			}
		setInterval(fun,10);
	});  
</script>
  <div class="es-section h400" style="position:relative;">
    {% include 'TopxiaWebBundle:Coin:integral-bar.html.twig' %}
    <span class="label label-primary label-md">我的积分</span>
   
    <br>
	  <div style=" position:absolute; left:260px; top:490px;">
	   <strong style="font-size:60px;color:blue" id='integral'>{{ integral }}</strong>
	  </div>
    <div class="coin-block clearfix" >
      <div class="coin-text" >
<!--
        {% if setting('coin.coin_picture') %}
          <img class="coin-picture" src="{{asset(setting('coin.coin_picture')) }}" alt="虚拟币图片" width="30px" >
        {% endif %}
-->
<!--        <strong >{{ integral }}</strong>-->
		  <img src="/assets/img/placeholder/jfk.jpg" />
      </div>

      
    </div>
 
  </div>

{% endblock %}